package com.binhai.role;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RoleService {
    @Autowired
    private RoleDao roleDao;

    public List getAllInfos() {
        return roleDao.getAllInfos();
    }

    public Map saveInfo(RoleBean role) {
        return roleDao.saveInfo(role);
    }

    public Map deleteInfo(int id) {
        return roleDao.deleteInfo(id);
    }

    public Map getInfoById(int id) {
        return roleDao.getInfoById(id);
    }

    public Map updateInfo(RoleBean role) {
        return roleDao.updateInfo(role);
    }
}
